//
//  FexTableViewCell.m
//  XiangMu
//
//  Created by 康世标 on 15/8/13.
//  Copyright (c) 2015年 康世标. All rights reserved.
//

#import "FexTableViewCell.h"

@implementation FexTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.imagView1.layer.masksToBounds=YES;
    self.imagView1.layer.cornerRadius=40.0f;
}
- (void)getReuest:(NSDictionary * )dic{
    
    [self.imagView1 sd_setImageWithURL:[NSURL URLWithString:[dic valueForKey:@"headImg"]==[NSNull null]?@"like":[dic valueForKey:@"headImg"]] placeholderImage:[UIImage imageNamed:@"like"]];
    self.name.text = [dic valueForKey:@"cusName"]==[NSNull null]?@"":[dic valueForKey:@"cusName"];
    self.age.text = [NSString stringWithFormat:@"%@",[dic valueForKey:@"cusAge"]==[NSNull null]?@"":[dic valueForKey:@"cusAge"]];
    
//    if ([[dic valueForKey:@"sex"] intValue]==1) {
//        
//        self.sex.text = @"男";
//    }
//    else{
//        
//        self.sex.text = @"女";
//    }
    
    self.sex.text =[dic valueForKey:@"cusSex"]==[NSNull null]?@"":[dic valueForKey:@"cusSex"];
    
    self.tel.text = [NSString stringWithFormat:@"%@",[dic valueForKey:@"cusTel"]==[NSNull null]?@"":[dic valueForKey:@"cusTel"]] ;

    
    
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
